package com.itheima.scannerdemo;

public class Scanner {
    public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);//先调用Scanner这个程序，这个是java公司编写好的

        System.out.println("请输入一个整数：");
        int age = sc.nextInt();
        System.out.println("你刚刚输入数字是：" + age);
        System.out.println("请输入您的姓名:");
        String name = sc.next();
        System.out.println("您好：" + name);


    }
}
